﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using Public;
using DAL;

namespace BUS
{
    public class XuatKho_BUS
    {
        XuatKho_DAL xk_dal = new XuatKho_DAL();
        XuatKho_PB xk_pb = new XuatKho_PB();

        public DataTable LayDSKH()
        {
            return xk_dal.LayDSKH();
        }
        public DataTable LayDSNV()
        {
            return xk_dal.LayDSNV();
        }
        public DataTable LayDSCTXuat()
        {
            return xk_dal.LayDSCTXuatKho();
        }
        public DataTable LayDSTonKho()
        {
            return xk_dal.LayDSTonKho();
        }
        public DataTable LayDSKho()
        {
            return xk_dal.LayDSKho();
        }
        public DataTable LayDSPhieuXuat()
        {
            return xk_dal.LayDSPhieuXuat();
        }
        public DataTable TimMaPhieuXuat(string ma)
        {
            return xk_dal.TimMaPhieuXuat(ma);
        }
        public int ThemPhieuXuat(XuatKho_PB xk_pb)
        {
            return xk_dal.ThemPhieuXuat(xk_pb);
        }
        public int SuaPhieuXuat(XuatKho_PB xk_pb)
        {
            return xk_dal.SuaPhieuXuat(xk_pb);
        }
        public int XoaPhieuXuat(XuatKho_PB xk_pb)
        {
            return xk_dal.XoaXuatKho(xk_pb);
        }
        public int XoaPhieuXuat1(XuatKho_PB xk_pb)
        {
            return xk_dal.XoaXuatKho1(xk_pb);
        }
        public int ThemCTXuat(XuatKho_PB xk_pb)
        {
            return xk_dal.ThemCTXuat(xk_pb);
        }
        public int SuaCTXuat(XuatKho_PB xk_pb)
        {
            return xk_dal.SuaCTXuat(xk_pb);
        }
        public int XoaCTXuat(XuatKho_PB xk_pb)
        {
            return xk_dal.XoaCTXuatKho(xk_pb);
        }
        public DataTable TimID(XuatKho_PB xk_pb)
        {
            return xk_dal.TimID(xk_pb);
        }
        public string NextID_PX()
        {
            return xk_dal.NextID_PX();
        }
        public string NextID_CTX()
        {
            return xk_dal.NextID_CTX();
        }
        public int SuaTonKho(XuatKho_PB xk_pb)
        {
            return xk_dal.SuaTonKho(xk_pb);
        }
        public bool CheckExists(string mavattu,string makho)
        {
            return xk_dal.CheckExists(mavattu, makho);
        }
        public int LaySLTonKho(string mavattu,string makho)
        {
            return xk_dal.LaySLTonKho(mavattu,makho);
        }
    }
}
